﻿using DocumentFormat.OpenXml.Presentation;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PPTHelper.BLL.TimingRoot
{
    /// <summary>
    /// 动画执行器
    /// </summary>
    public class AnimationExecutor
    {
        /// <summary>
        /// 元素集合
        /// </summary>
        public Collection<ElementInfo> ShapeInfos { get; }

        /// <summary>
        /// 时序树
        /// </summary>
        public Timing Timing { get; }

        /// <summary>
        /// 下一步触发动画
        /// </summary>
        public void OnNextStep()
        {

        }

        /// <summary>
        /// 上一步触发动画
        /// </summary>
        public void OnLastStep()
        {

        }

        /// <summary>
        /// 执行触发器命令
        /// </summary>
        /// <param name="cmd"></param>
        public void OnTriggerCommand(string cmd)
        {

        }

        /// <summary>
        /// 构造方法
        /// </summary>
        /// <param name="shapeInfos"></param>
        public AnimationExecutor(Timing timing,Collection<ElementInfo> shapeInfos)
        {
            this.ShapeInfos = shapeInfos;
            this.Timing = timing;
        }

        void GetMainSequence()
        {

        }


    }
}
